﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher: Person
    {
        private string title;
        private int wageno;
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public int Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public void Print()
        {
            this.Id = 1;
            this.Name = "小红";
            this.Sex = "女";
            this.Cardid = 11011010;
            this.Tel = 48856;
            this.title = "教导主任";
            this.wageno = 9865;
        }
        public Teacher(string name)
        {
            Print();
            Console.WriteLine(this.Id);
            Console.WriteLine(this.Name);
            Console.WriteLine(this.Sex);
            Console.WriteLine(this.Cardid);
            Console.WriteLine(this.Tel);
            Console.WriteLine(this.title);
            Console.WriteLine(this.wageno);

        }

    }
}
